package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbCompanyMerchantChatRecordMapper;
import com.ruoyi.system.domain.TbCompanyMerchantChatRecord;
import com.ruoyi.system.service.ITbCompanyMerchantChatRecordService;

/**
 * 公司-商家：客服聊天记录Service业务层处理
 * 
 * @author hkj
 * @date 2024-09-09
 */
@Service
public class TbCompanyMerchantChatRecordServiceImpl implements ITbCompanyMerchantChatRecordService 
{
    @Autowired
    private TbCompanyMerchantChatRecordMapper tbCompanyMerchantChatRecordMapper;

    /**
     * 查询公司-商家：客服聊天记录
     * 
     * @param recordId 公司-商家：客服聊天记录主键
     * @return 公司-商家：客服聊天记录
     */
    @Override
    public TbCompanyMerchantChatRecord selectTbCompanyMerchantChatRecordByRecordId(Long recordId)
    {
        return tbCompanyMerchantChatRecordMapper.selectTbCompanyMerchantChatRecordByRecordId(recordId);
    }

    /**
     * 查询公司-商家：客服聊天记录列表
     * 
     * @param tbCompanyMerchantChatRecord 公司-商家：客服聊天记录
     * @return 公司-商家：客服聊天记录
     */
    @Override
    public List<TbCompanyMerchantChatRecord> selectTbCompanyMerchantChatRecordList(TbCompanyMerchantChatRecord tbCompanyMerchantChatRecord)
    {
        return tbCompanyMerchantChatRecordMapper.selectTbCompanyMerchantChatRecordList(tbCompanyMerchantChatRecord);
    }

    /**
     * 新增公司-商家：客服聊天记录
     * 
     * @param tbCompanyMerchantChatRecord 公司-商家：客服聊天记录
     * @return 结果
     */
    @Override
    public int insertTbCompanyMerchantChatRecord(TbCompanyMerchantChatRecord tbCompanyMerchantChatRecord)
    {
        return tbCompanyMerchantChatRecordMapper.insertTbCompanyMerchantChatRecord(tbCompanyMerchantChatRecord);
    }

    /**
     * 修改公司-商家：客服聊天记录
     * 
     * @param tbCompanyMerchantChatRecord 公司-商家：客服聊天记录
     * @return 结果
     */
    @Override
    public int updateTbCompanyMerchantChatRecord(TbCompanyMerchantChatRecord tbCompanyMerchantChatRecord)
    {
        return tbCompanyMerchantChatRecordMapper.updateTbCompanyMerchantChatRecord(tbCompanyMerchantChatRecord);
    }

    /**
     * 批量删除公司-商家：客服聊天记录
     * 
     * @param recordIds 需要删除的公司-商家：客服聊天记录主键
     * @return 结果
     */
    @Override
    public int deleteTbCompanyMerchantChatRecordByRecordIds(Long[] recordIds)
    {
        return tbCompanyMerchantChatRecordMapper.deleteTbCompanyMerchantChatRecordByRecordIds(recordIds);
    }

    /**
     * 删除公司-商家：客服聊天记录信息
     * 
     * @param recordId 公司-商家：客服聊天记录主键
     * @return 结果
     */
    @Override
    public int deleteTbCompanyMerchantChatRecordByRecordId(Long recordId)
    {
        return tbCompanyMerchantChatRecordMapper.deleteTbCompanyMerchantChatRecordByRecordId(recordId);
    }
}
